//
//  WBTestViewController.swift
//  daoge_sineweibo
//
//  Created by 伍禄林 on 16/9/27.
//  Copyright © 2016年 伍禄林. All rights reserved.
//

import UIKit

class WBTestViewController: WBBaseViewController {
    
    override func loadView() {
        super.loadView()
        title = "第\(navigationController?.childViewControllers.count ?? 0)个"
    }
    
    
}

extension WBTestViewController{
    
    override func setupTableView() {
        super.setupTableView()
        
        naviItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", target: self, action: #selector(showNext))
        
    }
    
    func showNext()  {
        
        let vc = WBTestViewController()
        
        navigationController?.pushViewController(vc, animated: true)
        
    }
}
